const fs = require('fs');

setInterval(() => {
    fs.writeFileSync('test.log',(new Date().getTime()))
},1000);